package com.vastcom.sigma.admin.service;

import com.vastcom.sigma.admin.model.*;
import com.vastcom.sigma.admin.to.BlockChain;
import com.vastcom.sigma.admin.vo.NzSelOption;
import com.vastcom.sigma.admin.vo.NzTreeVo;

import java.awt.image.BufferedImage;
import java.util.List;

public interface ManageService {

    Gys saveGys(Gys gys);

    Gys getGysByid(String id);

    boolean deleteGysByid(String id);

    List<Gys> getGyses();

    String getGysNameByid(String id);

    Refertype saveRefertype(Refertype refertype);

    boolean deleteRefertypeByid(String id);

    Refertype getRefertypeByid(String id);

    List<Refertype> getRefertypes();

    Referdata saveReferdata(Referdata referdata);

    boolean deleteReferdataByid(String id);

    Referdata getReferdataByid(String id);

    String getReferdateNameByid(String id);

    List<Referdata> getReferdatas();

    List<Referdata> getReferdatasByTypeid(String id);

    List<NzSelOption> getReferdataSelectByTypeid(String id);

    Cargocate saveCargocate(Cargocate cargocate);

    boolean deleteCargocate(String id);

    Cargocate getCargocateByid(String id);

    String getCargocateNamwByid(String id);

    List<NzTreeVo> getNzTreeCargocate(String pid);

    List<NzSelOption> getNzSelOptionCargocate(String pid);

    List<Cargocate> getCargocates();

    List<Cargocate> getCargocatesBypid(String cargocateid);

    Coffeeincoming saveCoffeeincoming(Coffeeincoming coffeeincoming);

    boolean deleteCoffeeincomingByid(String id);

    Coffeeincoming getCoffeeincomingByid(String id);
    Coffeeincoming getCoffeeincomingByPm(String id);

    List<Coffeeincoming> getCoffeeincomings();
    List<Coffeeincoming> getCoffeeincomingsByPm(String pm);

    Object[] getRawBeanNum();


    Matincoming saveMatincoming(Matincoming matincoming);

    Matincoming getMatincomingByid(String id);

    List<Matincoming> getMatincomings();
    List<Matincoming> getMatincomingsByPm(String pm);

    boolean deleteMatincomingByid(String id);

    Proplan saveProplan(Proplan proplan);

    Proplan getProplanByid(String id);

    List<Proplan> getProplans();

    boolean deleteProplanByid(String id);

    Dbd saveDbd(Dbd dbd);

    Dbd getDbdByid(String id);

    Dbd getDbdByScpcAndBC(String id);
    Dbd getDbdByScpc(String id);

    Dbd getDbdByScpcAndCoffee(String id);

    List<Dbd> getDbds();
    List<Dbd> getDbdsByClqk(String clqk);

    boolean deleteDbdByid(String id);


    Bakerecord saveBakerecord(Bakerecord bakerecord);

    Bakerecord getBakerecordByid(String id);

    Bakerecord getBakerecordByScpc(String scpc);

    List<Bakerecord> getBakerecords();

    List<Bakerecord> getBakerecordsByClqk(String clqk);

    boolean deleteBakerecordByid(String id);

    Baketest saveBaketest(Baketest baketest);

    Baketest getBaketestByid(String id);

    Baketest getBaketestByScpc(String scpc);

    List<Baketest> getBaketests();

    List<Baketest> getBaketestsByClqk(String clqk);

    boolean deleteBaketestByid(String id);

    Encapsort saveEncapsort(Encapsort encapsort);

    Encapsort getEncapsortByid(String id);

    Encapsort getEncapsortByScpc(String id);

    List<Encapsort> getEncapsorts();

    List<Encapsort> getEncapsortsByClqk(String Clqk);

    boolean deleteEncapsortstByid(String id);


    Cuptest saveCuptest(Cuptest cuptest);

    Cuptest getCuptestByid(String id);

    Cuptest getCuptestByScpc(String scpc);

    List<Cuptest> getCuptests();

    List<Cuptest> getCuptestsByClqk(String clqk);

    boolean deleteCuptestByid(String id);

    Encapsulation saveEncapsulation(Encapsulation encapsulation);

    Encapsulation getEncapsulationByid(String id);
    Encapsulation getEncapsulationByScpc(String id);

    List<Encapsulation> getEncapsulations();

    List<Encapsulation> getEncapsulationsByClqk(String clqk);

    boolean deleteEncapsulationByid(String id);

    Prohouseid saveProhouseid(Prohouseid prohouseid);

    Prohouseid getProhouseidByid(String id);
    Prohouseid getProhouseidByScpc(String scpc);

    Prohouseid getProhouseidByProducid(String id);

    List<Prohouseid> getProhouseids();

    List<Prohouseid> getProhouseidsByClqk(String clqk);

    boolean deleteProhouseidByid(String id);

    Prodoutbound saveProdoutbound(Prodoutbound prodoutbound);

    Prodoutbound getProdoutboundByid(String id);

    List<Prodoutbound> getProdoutbounds();

    boolean deleteProdoutboundByid(String id);

    Kcsl saveKcsl(Kcsl kcsl);

    Kcsl getKcslByproid(String id);

    List<Kcsl> getKcsls();

    int getKcslnumByproid(String id);


    Rawbeaninventory saveRawbeaninventory(Rawbeaninventory rawbeaninventory);

    boolean deleteRawbeaninventory(String id);

    Rawbeaninventory getRawbeaninventoryById(String id);

    Rawbeaninventory getRawbeaninventoryByPmId(String id);

    List<Rawbeaninventory> getRawbeaninventoryList();


    Rawbeaninventorychange saveRawbeaninventorychange(Rawbeaninventorychange rawbeaninventorychange);

    boolean deleteRawbeaninventorychange(String id);

    Rawbeaninventorychange getRawbeaninventorychangeById(String id);


    List<Rawbeaninventorychange> getRawbeaninventorychangeByType(String type);

    List<Rawbeaninventorychange> getRawBeanInventoryChangeList();


    Materiainventory saveMateriainventory(Materiainventory materiainventory);

    boolean deleteMateriainventory(String id);

    Materiainventory getMateriainventoryById(String id);

    Materiainventory getMateriainventoryByPm(String pm);

    List<Materiainventory> getMateriainventoryList();

    Materiainventorychange saveMateriainventorychange(Materiainventorychange mc);

    boolean deleteMateriainventorychange(String id);

    Materiainventorychange getMateriainventorychangeById(String id);

    List<Materiainventorychange> getMateriainventorychangeList();


    String getCurrentUserId();

    String getCurrentRole();

    Member getMemberByid(String id);

    String getMemberStrByid(String id);

    Upb saveUpbloackchain(Upb upbloackchain);

    boolean deleteUpbloackchain(String id);

    Upb getUpbloackchainByid(String id);

    List<Upb> getAllUpbloackchain();

    BufferedImage createImage(String content);

    Blockchaindb saveBlockchaindb(Blockchaindb blockChain);
    Blockchaindb getBlockchaindbByKeyname(String keyname);
    List<Blockchaindb> getBlockchaindbs();

   List<Loginlog> getLoginlogs();

    Searchlog saveSearchlog(Searchlog searchlog);
   List<Searchlog> getSearchlogs();
}
